export default {
  state:{
    song:[],
    sing:1,
    searchName:'',
    songtime:[],
    searchlist:'',
    songCount:''
  },
  mutations:{
    getsongCount(state,data){
      state.songCount = data
    },
    getSearch(state,song){
      state.song = song
    },
    getSearchName(state,name){
      localStorage.setItem('searchname',name)
      state.searchName = name
    },
    //获取音乐时间戳
    getsongtime(state,time){
      state.songtime = time
      // state.songtime.push(time)
    },
    getsearchlist(state,data){
      state.searchlist = data
    }
  },
  getters:{
   
  },
  namespaced: true  //保证多个模块间的数据不冲突
}